package cn.edu.gdu.quizpractice.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.redis.core.StringRedisTemplate;
import org.springframework.data.redis.core.script.DefaultRedisScript;
import org.springframework.stereotype.Service;

import java.util.Collections;

/**
 * @Author: Aubery
 * @Date: 2025-03-21-23:10
 * @Description:
 */

public interface OptimizedCounterService {

    public Long incrementWithExpire(String key, long expireSeconds);

    public Long decrement(String key);


    public Long getCount(String key);

    public void reset(String key);
}
